﻿<Page x:Class="TV4Home.Client.Desktop.QuickEPG.Pages.MainPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="300" d:DesignWidth="500"
	Title="MainPage">
    <Page.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Assets/Styles.xaml"/>
                <ResourceDictionary Source="/Assets/CoreStyles.xaml"/>
                <ResourceDictionary Source="/Assets/CommonResources.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Page.Resources>
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="200" />
            <ColumnDefinition Width="250*" />
        </Grid.ColumnDefinitions>
        <Border Margin="3" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Grid.Column="0" BorderBrush="WhiteSmoke" BorderThickness="1">
            <ListBox x:Name="lbChannels" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <TextBlock Text="{Binding Path=DisplayName}" />
                    </DataTemplate>
                </ListBox.ItemTemplate>
                <ListBox.ItemContainerStyle>
                    <Style TargetType="ListBoxItem">
                        <EventSetter Event="ListBoxItem.Selected" Handler="lbChannels_Selected" HandledEventsToo="True"/>
                    </Style>
                </ListBox.ItemContainerStyle>
            </ListBox>
        </Border>
        <Border Margin="3" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Grid.Column="1" BorderBrush="WhiteSmoke" BorderThickness="1">
            <ListBox x:Name="lbPrograms" Margin="0" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
            </ListBox>
        </Border>
    </Grid>
</Page>
